﻿<Window
    x:Uid="Window_1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:loc="clr-namespace:Number2Letters.Properties"
    x:Class="Number2Letters.Window1"
    Title="Number 2 Letters" Height="600" Width="800" mc:Ignorable="d">
	
	<Window.Resources>
	    <Style x:Key="BigRadioLabel" TargetType="{x:Type RadioButton}">
	      <Setter Property="Control.FontSize" Value="16"/>      
	    </Style>
  	</Window.Resources>
	
	<Window.Background>
		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="Black" Offset="1"/>
			<GradientStop Color="#FF19A563"/>
		</LinearGradientBrush>
	</Window.Background>
    
    <Grid>
        <GroupBox Height="130" Margin="8,7,258,0" x:Name="gbRandomTesting" VerticalAlignment="Top">
			<GroupBox.Header>
				<Label x:Uid="lblRandomTesting" x:Name="lblRandomTesting" Content="{x:Static loc:Resources.randomTesting}" FontFamily="Verdana" Foreground="Gold" FontSize="16" />
			</GroupBox.Header>
            
            <Grid>
                <Label x:Uid="lblMinValue" Height="28" Margin="6,6,0,0" x:Name="lblMinValue" VerticalAlignment="Top" HorizontalAlignment="Left" Width="127" Content="{x:Static loc:Resources.minValue}" FontSize="16"/>
                <TextBox x:Uid="txtMinValue" Height="23" Margin="139,11,102,0" x:Name="txtMinValue" VerticalAlignment="Top" TextChanged="txtMXValue_TextChanged" />
                
                <Label x:Uid="lblMaxValue" Margin="6,35.331,0,27" x:Name="lblMaxValue" HorizontalAlignment="Left" Width="127" Content="{x:Static loc:Resources.maxValue}" FontSize="16"/>
                <TextBox x:Uid="txtMaxValue" Margin="139,40,102,33" x:Name="txtMaxValue" TextChanged="txtMXValue_TextChanged" />
                
                <Label x:Uid="lblHowMany" HorizontalAlignment="Right" Margin="0,11,0,0" x:Name="lblHowMany" Width="96" Height="31" VerticalAlignment="Top" Content="{x:Static loc:Resources.howMany}" FontSize="16"/>
                <ComboBox x:Uid="cboHowMany" HorizontalAlignment="Right" Margin="0,40,6,33" x:Name="cboHowMany" Width="90" IsEditable="True" SelectedIndex="0">
                    <ComboBoxItem x:Uid="ComboBoxItem_1" Content="10"/>
                    <ComboBoxItem x:Uid="ComboBoxItem_2" Content="15"/>
                    <ComboBoxItem x:Uid="ComboBoxItem_3" Content="20"/>
                    <ComboBoxItem x:Uid="ComboBoxItem_4" Content="30"/>
                    <ComboBoxItem x:Uid="ComboBoxItem_5" Content="50"/>
                </ComboBox>
                
                <Button x:Uid="btRandomTest" Height="23" Margin="6,0,6,4" x:Name="btRandomTest" VerticalAlignment="Bottom" IsEnabled="False" Click="btRandomTest_Click" Content="{x:Static loc:Resources.randomTest}"/>
            </Grid>
        </GroupBox>
        
        <GroupBox Height="130" x:Name="gbManualTesting" VerticalAlignment="Top" Margin="0,7,8,0" HorizontalAlignment="Right" Width="244">
			<GroupBox.Header>
				<Label x:Uid="lblManualTesting" x:Name="lblManualTesting" Content="{x:Static loc:Resources.manualTesting}" FontFamily="Verdana" Foreground="Gold" FontSize="16" />
			</GroupBox.Header>
            
            <Grid>
                <Label x:Uid="lblTestTheNumber" Margin="5,2.665,80.667,0" x:Name="lblTestTheNumber" Height="39.335" VerticalAlignment="Top" Content="{x:Static loc:Resources.testTheNumber}" FontSize="16" d:LayoutOverrides="HorizontalAlignment"/>
                <TextBox x:Uid="txtTestTheNumber" Margin="6,40,6,33" x:Name="txtTestTheNumber" TextChanged="txtTestTheNumber_TextChanged" />
                
                <Button x:Uid="btManualTest" Height="23" Margin="5,0,6,4" x:Name="btManualTest" VerticalAlignment="Bottom" Click="btManualTest_Click" IsEnabled="False" Content="{x:Static loc:Resources.manualTest}" />
            </Grid>
        </GroupBox>
        
        <GroupBox Margin="8,140,8,0" x:Name="gbAvailableCultures" Height="60" VerticalAlignment="Top">
			<GroupBox.Header>
				<Label x:Uid="lblAvailableCultures" x:Name="lblAvailableCultures" Content="{x:Static loc:Resources.availableCultures}" FontFamily="Verdana" Foreground="Gold" FontSize="16" />
			</GroupBox.Header>
            
            <Grid>
                <Image x:Uid="imgFlag" Name="imgFlag" HorizontalAlignment="Left" Stretch="Fill" VerticalAlignment="Top" Width="30" Height="22" Margin="6,1,0,0" />
                
                <RadioButton x:Uid="rbesES" HorizontalAlignment="Left" x:Name="rbesES" Margin="50,0,0,4" Checked="rbX_Checked" Content="es-ES" Style="{StaticResource BigRadioLabel}" Width="55.669" VerticalAlignment="Bottom" VerticalContentAlignment="Bottom" />
                <RadioButton x:Uid="rbitIT" HorizontalAlignment="Left" x:Name="rbitIT" Margin="113,0,0,4" Checked="rbX_Checked" Content="it-IT" Style="{StaticResource BigRadioLabel}" Width="50.253" VerticalAlignment="Bottom" VerticalContentAlignment="Bottom" />
                <RadioButton x:Uid="rbenUS" HorizontalAlignment="Left" x:Name="rbenUS" Margin="170,0,0,4" Checked="rbX_Checked" Content="en-US" Style="{StaticResource BigRadioLabel}" VerticalAlignment="Bottom" VerticalContentAlignment="Bottom"/>
                <RadioButton x:Uid="rbdeDE" HorizontalAlignment="Left" x:Name="rbdeDE" Margin="235,0,0,4" Checked="rbX_Checked" Content="de-DE" Style="{StaticResource BigRadioLabel}" VerticalAlignment="Bottom" VerticalContentAlignment="Bottom"/>
                <RadioButton x:Uid="rbfrFR" HorizontalAlignment="Left" x:Name="rbfrFR" Margin="303,0,0,4" Checked="rbX_Checked" Content="fr-FR" Style="{StaticResource BigRadioLabel}" VerticalAlignment="Bottom" VerticalContentAlignment="Bottom"/>
                <RadioButton x:Uid="rbfrBE" HorizontalAlignment="Left" x:Name="rbfrBE" Margin="365,0,0,4" Checked="rbX_Checked" Content="fr-BE" Style="{StaticResource BigRadioLabel}" VerticalAlignment="Bottom" VerticalContentAlignment="Bottom"/>
                <RadioButton x:Uid="rbfrCH" HorizontalAlignment="Left" x:Name="rbfrCH" Margin="422,0,0,4" Checked="rbX_Checked" Content="fr-CH" Style="{StaticResource BigRadioLabel}" VerticalAlignment="Bottom" VerticalContentAlignment="Bottom"/>
                <RadioButton x:Uid="rbruRU" HorizontalAlignment="Left" x:Name="rbruRU" Margin="480,0,0,4" Checked="rbX_Checked" Content="ru-RU" Style="{StaticResource BigRadioLabel}" VerticalAlignment="Bottom" VerticalContentAlignment="Bottom" />
            </Grid>
        </GroupBox>
        
        <GroupBox Margin="6,198,8,12" x:Name="gbResults">
			<GroupBox.Header>
				<Label x:Uid="lblResults" x:Name="lblResults" Content="{x:Static loc:Resources.results}" FontFamily="Verdana" Foreground="Gold" FontSize="16" />
			</GroupBox.Header>
            
			<Grid>
                <ListView x:Uid="lstResults" Margin="6" x:Name="lstResults">
					<ListView.ContextMenu>
			      		<ContextMenu x:Uid="contextMenu" Name="contextMenu">
			      			<MenuItem x:Uid="menuRemove" Header="{x:Static loc:Resources.remove}" ToolTip="{x:Static loc:Resources.removeTheSelectedItem}" Name="menuRemove" Click="menuRemove_Click" />
							<MenuItem x:Uid="menuRemoveAll" Header="{x:Static loc:Resources.removeAll}" ToolTip="{x:Static loc:Resources.removeAllItems}" Name="menuRemoveAll" Click="menuRemoveAll_Click" />
							<MenuItem x:Uid="menuCopy" Header="{x:Static loc:Resources.copy}" ToolTip="{x:Static loc:Resources.copyTheSelectedItem}" Name="menuCopy" Click="menuCopy_Click"/>
							<MenuItem x:Uid="menuCopyAll" Header="{x:Static loc:Resources.copyAll}" ToolTip="{x:Static loc:Resources.copyAllItems}" Name="menuCopyAll" Click="menuCopyAll_Click" />
			      		</ContextMenu>
			      	</ListView.ContextMenu>
                </ListView>
            </Grid>
        </GroupBox>
        
    </Grid>
</Window>